#ifndef __PROTO1_T__
#define __PROTO1_T__

#define KEYPATH "/etc/services"
#define KEYPROJ 'a'
#define PATHMAX (1024)
#define DATAMAX (1024)

enum{
    MSG_PATH = 1,
    MSG_DATA,
    MSG_EOT
}msg_mtype_t;

typedef struct{
    long mtype; /* msg_mtype_t MSG_PATH */
    char path[PATHMAX];
}msg_path_t;

typedef struct{
    long mtype; /* msg_mtype_t MSG_DATA */
    char data[DATAMAX];
    int datalen;
}msg_data_t;

typedef struct{
    long mtype; /* msg_mtype_t MSG_EOT */
}msg_eot_t;

union {
    long mtype;
    msg_data_t datamsg;
    msg_eot_t eotmsg;
}msg_s2c_un;

#endif //__PROTO1_T__
